package br.com.laeventos.service;

import java.util.ArrayList;

import br.com.laeventos.dao.AdministradorDAO;
import br.com.laeventos.interfaces.InterfaceBanco;
import br.com.laeventos.model.Administrador;

public class AdministradorService implements InterfaceBanco {

	AdministradorDAO adminDao = new AdministradorDAO();
	
	public ArrayList<Administrador> retornar(int limit, String tituloBusca, int opcao)
			throws Exception {
		return adminDao.retornar(limit, tituloBusca, opcao);
	}

	public boolean cadastrar(Object obj) throws Exception {
		return adminDao.cadastrar(obj);
	}

	public boolean alterar(Object obj) throws Exception {
		return adminDao.cadastrar(obj);
	}

	public boolean deletar(Object obj) throws Exception {
		return adminDao.deletar(obj);
	}

}
